package cn.ciis.basic.plugin;

import com.baomidou.kisso.SSOConfig;
import com.baomidou.kisso.SSOHelper;
import com.jfinal.plugin.IPlugin;

public class KissoJfinalPlugin implements IPlugin {

    @Override
    public boolean start() {

        SSOConfig ssoConfig = SSOConfig.getInstance().setCookieHttpOnly(true).setLoginUrl("/login")
                .setCookieName("CiisAId");
        SSOHelper.setSsoConfig(ssoConfig);
        SSOHelper.getKissoService();
        return true;
    }

    @Override
    public boolean stop() {
        return true;
    }
}
